﻿@model Stardust.Models.Horario


@{
    ViewBag.Title = "Crear Horario";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/custom.js")" type="text/javascript"></script>

@if ( !String.IsNullOrEmpty(ViewBag.error)) { 
    <div class="nNote nWarning hideit">
        <p><strong>AVISO: </strong>@ViewBag.error</p>
    </div>
}

@using (Html.BeginForm("CrearHorario", "Empleado", FormMethod.Post, new { @class = "form" }))
{
    @Html.ValidationSummary(false)
    <fieldset>
        <div class = "widget" >
            <div class = "title" ><h6>Crear Nuevo Horario</h6></div>

            @*<div class = "formRow" >
                @Html.LabelFor( model => model.nombreEmpleado )
                <div class = "formRight" > @Html.DropDownListFor( model => model.nombreEmpleado , new SelectList( ViewBag.empleados , "ID" , "nombres" ) , "Elija un usuario... " ) </div>
                <div class = "clear" ></div>
            </div>*@

            <div class = "formRow" style= " display:none">
                @Html.LabelFor( model => model.idEmpleado )
                 
                <div class = "formRight" > @Html.TextBoxFor(model => model.idEmpleado) </div>
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" >
                @Html.LabelFor(model => model.fechaInicioHorario)
                <div class = "formRight" > @Html.TextBoxFor(model => model.fechaInicioHorario, new { @class = "datepicker" }) </div>
                <div class = "clear" ></div>
            </div>

            <div class = "formRow" >
                @Html.LabelFor( model => model.fechaFinHorario )
                <div class = "formRight" > @Html.TextBoxFor(model => model.fechaFinHorario, new { @class = "datepicker" }) </div>
                <div class = "clear" ></div>
            </div>
            

        </div>
        <p>
            <input class = "redB" type="submit" value="Crear" />
        </p>
    </fieldset>
}
<p></p><p></p>

<p></p><p></p><p></p><p></p><p></p>

